﻿namespace AnQinManagermentBackendAPI.Common.Request
{
    public class RequestResponseModel<T>
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 信息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        public T Data { get; set; }
    }


    public class RequestResponse
    {
        public static RequestResponseModel<T> CreateResponse<T>(int Status, string Message, T Data)
        {
            return new RequestResponseModel<T>
            {
                Status = Status,
                Message = Message,
                Data = Data
            };
        }
    }
}
